/*
 * Copyright 2017 The JA-SIG Collaborative. All rights reserved.
 * distributed with thi file and available online at
 */
package com.lap.scp.admin.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.lap.scp.admin.ao.LabelAO;
import com.lap.scp.admin.domain.LabelDO;

/**
 * <pre>
 *
 * </pre>
 * 
 * @author 劳水生 Exp
 * @Date 2017年9月6日 下午1:57:13
 * @since 1.0
 */
@RestController
@RequestMapping("rest")
public class LabelController {

	@Resource
	private LabelAO labelAO;

	@GetMapping(value = "role")
	public List<LabelDO> queryRole() {
		return labelAO.queryRole();
	}

	@GetMapping(value = "dept")
	public List<LabelDO> queryDept() {
		return labelAO.queryDept();
	}

	@GetMapping(value = "job")
	public List<LabelDO> queryJob() {
		return labelAO.queryJob();
	}

}
